export type AKDict<T> = { [key: string]: T }
export interface APIResult {
    success: boolean
    value: any
}

export const fail = (reason: string): APIResult => {
    return { success: false, value: reason }
}
export const success = (value: any): APIResult => {
    return { success: true, value }
}
